package com.xingchi.tornado.storage.core.exception;

import com.xingchi.tornado.basic.BaseCode;
import lombok.Getter;

/**
 * 文件上传相关错误吗
 *
 * @author xingchi
 * @date 2024/4/21 20:39
 */
@Getter
public enum FileCode implements BaseCode {

    FILE_NOT_FOUND(20001, "文件不存在"),
    FILE_UPLOAD_FAIL(20002, "文件上传失败"),
    FILE_DELETE_FAIL(20003, "文件删除失败"),
    FILE_NOT_EXIST(20004, "文件不存在"),
    DOWNLOAD_FILE_FAIL(20005, "下载文件失败"),
    ;

    private final Integer code;
    private final String message;


    FileCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
